package com.shun.upms.node;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author clever
 * @since 2021-10-02
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysMenuNode implements Serializable {

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 菜单Id
     */
    private String menuId;

    /**
     * 菜单父Id
     */
    private String parentId;

    /**
     * 菜单Url
     */
    private String url;

    /**
     * icon/title
     */
    private Map<String,Object> meta;

    /**
     * 子菜单
     */
    private List<SysMenuNode> children = new ArrayList<SysMenuNode>();
}
